import { IsNotEmpty, IsString, Length } from 'class-validator';
export class CreateUserDto {
  @Length(6, 20)
  @IsString()
  @IsNotEmpty()
  username: string;

  @Length(6, 20)
  @IsString()
  @IsNotEmpty()
  password: string;

  @IsString()
  code?: string;
}
